import instance from "./axios";

const add = (data) => {
    return instance.request({
       url:'mall/pms-comment-replay/add',
       method:'post',
       data
    })
 }
 const del = (id) => {
    return instance.request({
       url: `mall/pms-comment-replay/del/${id}`,
       method: 'get',
    })
 }
 const edit = (data) => {
    return instance.request({
       url:'mall/pms-comment-replay/edit',
       method:'post',
       data
    })
 }
const one = (id) => {
    return instance.request({
       url:`mall/pms-comment-replay/one/${id}`,
       method:'get',
    })
 }
 const page = (data) => {
    return instance.request({
       url: 'mall/pms-comment-replay/page', 
       method: 'post',
       data
    })
 }
export default {
    add,
    del,
    edit,
    one,
    page
 }


